<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <script type="text/javascript">
  	$(function()
  	{
  		$("#layoutDiv").layout("add",{
  			region:"north",
  			height:60
  		});
  		
  		$("#layoutDiv").layout("add",{
  			region:"south",
  			height:60
  		});
  		$("#layoutDiv").layout("add",{
  			region:"west",
  			title:"West",
  			width:300,
  			iconCls:"icon-help",
  			href:'jsp/menu.jsp'
  		});
  		$("#layoutDiv").layout("add",{
  			region:"center",
  			href:'jsp/mainFrame.jsp'
  		});
  		$("#layoutDiv").layout("add",{
  			region:"east",
  			title:"East",
  			width:200,
  			iconCls:"icon-help"
  		});
  	});
  	
  	function addTbs(name,tbsId,url)
	{
		if($("#"+tbsId).html() == null)
		{
			$("#mainFrame").tabs("add",{
				title:name,
				closable:true,
				content:createFrame(tbsId,url)
			});
		}
	}
	
	function createFrame(tbsId,url)
	{
		var s = "<iframe name='"+tbsId+"' id='"+tbsId+"' src='"+url+"' style='width:90%;height:100%'></iframe>";
		return s;
	}
  </script>
  </head>
  <body id="layoutDiv" class="easyui-layout">
  </body>
</html>
